package com.hailian.fintech.hlrenting_houseserver.controller;


import com.hailian.fintech.hlrenting_houseserver.entity.LeaseVo;
import com.hailian.fintech.hlrenting_houseserver.service.ILeaseService;
import com.hailian.fintech.hlrenting_houseserver.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wyt
 * @since 2020-05-21
 */
@RestController
@RequestMapping("/lease")
public class LeaseController {

    @Autowired
    ILeaseService leaseService;
    @RequestMapping("/list")
    public ResultEntity list(@RequestParam("tenantId")Integer tenantId){
        return ResultEntity.ok("信息展示成功",leaseService.leaseList(tenantId));
    }
}

